﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="DetailNewsWhatCookToDay.ascx.vb"
    Inherits="Control_WhatCookToDay_DetailNewsWhatCookToDay" %>
<%@ Register Src="../Comment/Comment.ascx" TagName="Comment" TagPrefix="uc1" %>
<%@ Import Namespace="Cls_Common" %>
<script type="text/javascript">
    $(function () {
        $('.linkComment').click(function () {
            $('.inputName_question').focus();
        });
    });
    function SetVoteContent(cID, txtNumLike) {
        var isLogin = '<%= Session("UserId")%>';
        if (isLogin == null || isLogin.length <= 0) {
            $("#<% =lnkLoginModal.ClientId() %>").click();
            return false;
        }
        else {
            $.ajax({
                type: "POST",
                url: '<%=ResolveUrl("~/Page/wsvProcess.asmx/LikeObject")%>',
                data: "{'oID': '" + cID + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (msg) {

                    if (eval(msg.d) != 0) {
                        $("#" + txtNumLike).text(msg.d);
                    }
                    return false;

                },
                error: function () {

                }
            });
            return false;
        }
    }

    function SharedObject(objid) {
        $("#<%=lnkSend.ClientId %>").click();
        return false;
    }
</script>
<asp:UpdatePanel runat="server" ID="upup">
    <ContentTemplate>
        <div class="box_cuisine_details">
           <div class="bgtop_cuisine_details">&nbsp;</div>
           <div class="bgmid_cuisine_details">
                
                   
                    <div class="text_titlelist"><h1> <asp:HyperLink ID="hplTitle" runat="server"></asp:HyperLink></h1></div>

                    <div class="imgLageBeauty_width590_style">
                        <asp:Literal ID="ltrViewAndUpdateDate" runat="server"></asp:Literal>
                    </div>
                    <div class="box_imgdishes">
                        
                            <asp:Image ID="imgDes" CssClass="imgLageBeauty_width590" runat="server" />
                        
                    </div>


                    <div class="content_view">
                        <div id="divVideo" runat="server" visible="false">
                            <asp:Panel ID="pnlVideoUpload" Visible="false" Width="100%" runat="server">
                                <div id="divEmbededVideo" style="padding-left: 10px; padding-top: 10px;">
                                    <!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
                                    <!-- END OF THE PLAYER EMBEDDING -->
                                </div>
                                <script type="text/javascript">
                                    jwplayer('divEmbededVideo').setup({
                                        flashplayer: "<%=PlayerUrl() %>",
                                        width: "590",
                                        height: "332",
                                        file: "<%= FileUrl() %>",
                                        image: "<%= ImageUrl() %>",
                                        repeat: 'none',
                                        autoplay: 'true',
                                        displayclick: 'none',
                                        skin: '<%=ResolveUrl("~/jwplayer/bluemetal/bluemetal.xml")%>'
                                    });
                                </script>
                            </asp:Panel>
                            <asp:Panel ID="pnlYoutube" Visible="false" Width="100%" runat="server">
                                <div id="div3" style="padding-left: 10px; padding-top: 10px; text-align: center">
                                    <asp:Literal ID="ltrShow" runat="server"></asp:Literal>
                                </div>
                            </asp:Panel>
                        </div>
                        
                                <asp:Literal ID="ltrContent" runat="server"></asp:Literal>
                        
                    </div>

                    <div class="content_view" style="text-align:right;">
                        <asp:Literal ID="ltrAuthur" runat="server"></asp:Literal>
                    </div>
                    <div>
                        <div id="tag" runat="server" class="tagLink">
                            <asp:Repeater ID="rptTag" runat="server">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hplTag" runat="server"></asp:HyperLink>
                                </ItemTemplate>
                            </asp:Repeater>
                            <asp:Image ID="imgtag" ImageUrl="~/images/tag_img.png" runat="server" />
                        </div>
                        
                        <div class="addthis_toolbox addthis_default_style " style="float: left">
                            <a href="http://www.addthis.com/bookmark.php?v=250&amp;pubid=ra-4ec08ae765473952"
                                class="addthis_button_compact">
                                <img name="ImageShare" src="<%= MainDomain %>FrontEnd/images/icon_share.png" width="20px" />
                            </a>
                        </div>
                        <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4ec08ae765473952"></script>
                        <%-- Share  End --%>
                    </div>
                
           
            
            <!--- bai lien quan-->
			<div class="clear_both"></div>	
            <!--title-->
                <div class="titler_comment">
                    <ul>                                              
                        <li id="current"><a >BÀI KHÁC</a></li>                                                                
                    </ul>
            </div>
            <div class="content_scroll_category"> 
                <div id="liquid1" class="liquid">
                     <div class="wrapper"> 
                        <ul>
                            <asp:Repeater ID="rptArticalRelate" runat="server">
                                <ItemTemplate>
                                    <li class="OthersItem">
                                        <p class="thumb_img_rel">  
                                        <asp:HyperLink ID="hplImg" runat="server">
                                            <asp:Image ID="imgDes" runat="server"  />
                                        </asp:HyperLink>
                                        </p>
                                        <p class="title_cuisine_rel">
                                        <asp:HyperLink ID="hplTitle" CssClass="linkPink" runat="server"></asp:HyperLink>
                                        </p>
                                         <p class="desc_dishes_relative">
                                            <asp:Label ID="ltrDes" runat="server" ></asp:Label>
                                            <asp:Label ID="lblimg" runat="server"></asp:Label>
                                        </p>
                                    </li>
                                </ItemTemplate>
                            </asp:Repeater>
                         </ul>
                    </div>
                </div>

           <div class="paper" align="right">
            <asp:LinkButton ID="lnkFirst" Text="Trước" runat="server" CausesValidation="false" Enabled="false" CssClass="pre"></asp:LinkButton>
                <span>
                    <asp:Repeater ID="rptPage" runat="server">
                        <ItemTemplate>
                            <asp:LinkButton ID="lnkTitle"  CausesValidation="false" runat="server"
                                OnClick="lnkTitle_Click"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:Repeater>
                </span>
            <asp:LinkButton ID="lnkLast" runat="server" Text="Sau" Enabled="false" CausesValidation="false" CssClass="next"></asp:LinkButton>
        </div>

            </div>
            </div>
            <div class="bgbottom_cuisine_details">&nbsp;</div>
      </div>   
        <div style="display: none">
            <asp:HyperLink NavigateUrl="~/Page/Member/login.aspx?keepThis=true&TB_iframe=true&height=341&width=537&modal=true"
                ID="lnkLoginModal" CssClass="thickbox" runat="server"></asp:HyperLink>
            <asp:HiddenField ID="hidMenuId" Value="0" runat="server" />
            <!--Ket thuc phan trang bai viet khac-->
            <asp:HiddenField ID="hidCount" Value="0" runat="server" />
            <asp:HiddenField ID="hidIndex_page" Value="0" runat="server" />
            <asp:HiddenField ID="hidCur_Page" Value="1" runat="server" />
            <asp:HiddenField ID="hidSubject" Value="" runat="server" />
            <asp:HiddenField ID="hidID" Value="0" runat="server" />
            <asp:HyperLink ID="lnkSend" runat="server" CssClass="thickbox" Text=""></asp:HyperLink>
            <asp:HiddenField ID="hidKeyword" Value="0" runat="server" />
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
